/* ****************************************************************************
 *
 * Copyright (c) Microsoft Corporation. 
 *
 * This source code is subject to terms and conditions of the Microsoft Public License. A 
 * copy of the license can be found in the License.html file at the root of this distribution. If 
 * you cannot locate the  Microsoft Public License, please send an email to 
 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 *
 * You must not remove this notice, or any other, from this software.
 *
 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
 * PARTICULAR PURPOSE.
 * ***************************************************************************/



#ifndef PGLMFCINCLUDE_H
	#define PGLMFCINCLUDE_H

#ifdef _PGLMFC_DLL
#if _MFC_VER >= 1300
//	#define _ALGOTOOLS_LIB_LOADED
//	#define _GFXINTERFACE_LIB_LOADED
#endif
#endif

#include <pgl/core/PGL.h>


#ifdef _PGLMFC_DLL
#define PGLMFC_EXT_CLASS _declspec(dllexport)
#else
#define PGLMFC_EXT_CLASS _declspec(dllimport)
#endif

//#ifdef _DLL
//	#ifndef PGLMFC_EXT_CLASS
//		#ifdef _PGLMFC_DLL
//			#define PGLMFC_EXT_CLASS _declspec(dllexport)
//		#else
//			#define PGLMFC_EXT_CLASS _declspec(dllimport)
//		#endif
//	#endif
//#else
//	#define PGLMFC_EXT_CLASS
//#endif

//#ifndef  _PGLMFC_DLL

#include <pgl/newmenu/NewMenu.h>
#include <pgl/mfc/PGLMFCResource.h>
#include <pgl/mfc/PGLMFCGlobal.h>
#include <pgl/mfc/PGLDialog.h>
#include <pgl/mfc/PGLDialogList.h>
#include <pgl/mfc/PGLStatic.h>
#include <pgl/mfc/PGLView.h>
#include <pgl/mfc/PGLWnd.h>
#include <pgl/mfc/PGLScript.h>
#include <pgl/mfc/PGLCAPI.h>

/*
#ifndef _PGLMFC_DLL_LOADED
#define _PGLMFC_DLL_LOADED

		#if _MSC_VER >= 1300
			#ifdef _DEBUG
				#ifdef _UNICODE
					#pragma message("     _Adding library: PGLMFC8ud.lib: MFC8.0, Debug, UNICODE" ) 
					#pragma comment(lib, "PGLMFC8ud.lib")
				#else
					#pragma message("     _Adding library: PGLMFC8d.lib: MFC8.0, Debug, MBCS" ) 
					#pragma comment(lib, "PGLMFC8d.lib")
				#endif
			#else
				#ifdef _UNICODE
					#pragma message("     _Adding library: PGLMFC8u.lib: MFC8.0, Release, UNICODE" ) 
					#pragma comment(lib, "PGLMFC8u.lib")
				#else
					#pragma message("     _Adding library: PGLMFC8.lib: MFC8.0, Release, MBCS" ) 
					#pragma comment(lib, "PGLMFC8.lib")
				#endif
			#endif
		#else
			#ifdef _DEBUG
				#ifdef _UNICODE
					#pragma message("     _Adding library: PGLMFCud.lib: MFC4.2, Debug, UNICODE" ) 
					#pragma comment(lib, "PGLMFCud.lib")
				#else
					#pragma message("     _Adding library: PGLMFCd.lib: MFC4.2, Debug, MBCS" ) 
					#pragma comment(lib, "PGLMFCd.lib")
				#endif
			#else
				#ifdef _UNICODE
					#pragma message("     _Adding library: PGLMFCu.lib: MFC4.2, Release, UNICODE" ) 
					#pragma comment(lib, "PGLMFCu.lib")
				#else
					#pragma message("     _Adding library: PGLMFC.lib: MFC4.2, Release, MBCS" ) 
					#pragma comment(lib, "PGLMFC.lib")
				#endif
			#endif
		#endif

#endif
#endif
		*/


#ifdef PGL_REDEFINE_MIN_MAX

#define min(a,b) ((a) < (b) ? (a) : (b))
#define max(a,b) ((a) < (b) ? (a) : (b))

#endif

#endif
